import {
  LOAD,
  LOAD_WITH_TOKEN,
  LOGOUT,
  REGISTER
} from './constants';



export function loadAuth(email, password) {
  return {
    type: LOAD,
    email,
    password
  };
}


export function loadAuthWithToken() {
  return {
    type: LOAD_WITH_TOKEN,
  };
}


export function logoutAuth() {
  return {
    type: LOGOUT,
  };
}


export function registerUser(username, email, password) {
  return {
    type: REGISTER,
    username,
    email,
    password
  };
}